#!/usr/bin/python3
# -*- coding:utf-8 -*-
"""
@author: 
@time: 2024/11/6 21:35
@Function: 请输入模块功能描述
"""
from config.setting import FILE_PATH
import yaml
def load_yaml():
    with open(FILE_PATH.get('config_yaml',''),'r',encoding = 'utf-8')as f:
        try:
            res=yaml.safe_load(f)
        except Exception as e:
            print('读取yaml配置信息异常,报错信息为：{}，请查看'.format(e))
    return res

if __name__ == '__main__':
    print(load_yaml()['one_api'].get('ONEAPI_API_BASE',''))